Skip to content

Enforce readonly name field for Test_Type instances and add dynamic serializer selection#14090

Merged
Maffooch merged 6 commits intobugfixfrom
disable-test-type-name-modifications
Jan 16, 2026
Merged

Enforce readonly name field for Test_Type instances and add dynamic serializer selection#14090
Maffooch merged 6 commits intobugfixfrom
disable-test-type-name-modifications

Conversation

@Maffooch
Copy link
Contributor

Implement readonly constraints on the name field for existing Test_Type instances in forms and serializers. Introduce a new serializer for creating Test_Type instances and dynamically select the appropriate serializer in the viewset based on the action.

Also removed the tag serializer on the test type endpoint because test types dont have tags...

[sc-12484]

@Maffooch Maffooch requested a review from mtesauro as a code owner January 14, 2026 17:50
@github-actions github-actions bot added the apiv2 label Jan 14, 2026
Copy link
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

Copy link
Member

@valentijnscholten valentijnscholten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I suggest to ask AI to add a unit test to cover the "name is readonly" constraint?

@valentijnscholten valentijnscholten added this to the 2.54.2 milestone Jan 15, 2026
@Maffooch Maffooch merged commit f5772ad into bugfix Jan 16, 2026
96 of 97 checks passed
@Maffooch Maffooch deleted the disable-test-type-name-modifications branch January 16, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants